package com.yk.system.domain;

import com.yk.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yk.common.annotation.Excel;

/**
 * 孩子信息对象 sys_child
 * 
 * @author xufei
 * @date 2025-04-28
 */
@Data
public class SysChild extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 名称 */
    @Excel(name = "孩子名称")
    private String name;

    /** 编号 */
//    @Excel(name = "编号")
    private String code;

    /** 家长id */
    @Excel(name = "家长名称")
    private String parentName;
    private Long parentId;

    /** 关系 */
    @Excel(name = "关系")
    private String relationshipName;
    private String relationship;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("parentId", getParentId())
            .append("relationship", getRelationship())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
